from django.db import models
from datetime import datetime

class ogPic(models.Model):

    name = models.ImageField(upload_to="ogImage/",verbose_name="文件名")
    time = models.DateTimeField(default=datetime.now)


    # 返回名称
    def __str__(self):
        return self.name